]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Use whole stage size for cover pane
authorverdre <gitlab@v0yd.nl>
Tue, 24 Jul 2018 12:45:03 +0000 (14:45 +0200)
committerverdre <gitlab@v0yd.nl>
Mon, 6 Aug 2018 08:18:28 +0000 (10:18 +0200)
We show a cover pane on top of the overview during transitions to
prevent issues caused by clicks and mouseover events when the overview
is not ready. Right now, this pane is only being shown on the primary
monitor, which obviosly allows interactions to happen before the
animations are finished on the secondary monitors.

To fix this, use the size of the whole stage for the cover pane.

js/ui/overview.js

index 487c0c4aa81cd7bac15d3d6b7d56ff98efe4aa2e..2418f1728a3aa7558793e976f56989789ac93f1c 100644 (file)
@@ -395,10 +395,8 @@ var Overview = new Lang.Class({
         if (!Main.layoutManager.primaryMonitor)
             return;
 
-        let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);
-
-        this._coverPane.set_position(0, workArea.y);
-        this._coverPane.set_size(workArea.width, workArea.height);
+        this._coverPane.set_position(0, 0);
+        this._coverPane.set_size(global.screen_width, global.screen_height);
 
         this._updateBackgrounds();
     },